package com.mapper;


import com.jxnu.Brand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper {
     List<Brand> selectAll();
     @Select("select * from tb_brand where id=#{id}")
     Brand selectById(int id);
     List<Brand> selectByCondition(@Param("status") int status,@Param("companyName") String companyName,@Param("brandName") String brandName);
     List<Brand> selectByConditionSingle(Brand brand);
     void add(Brand brand);
     int update(Brand brand);
     void deleteById(int id);
     void deleteByArr(@Param("arr") int[] arr);
}
